package com.apexedu.biz.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * TSysUserExt entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "T_SYS_USER_EXT")
public class TSysUserExt implements java.io.Serializable {

	/****** T_SYS_USER 表的字段  **/
	private String userid;
	private String userloginid;// manual add 用户注册的时候一个类搞定  非持久化
	private String username;// manual add 昵称  非持久化
    private String usertype;
    private String state;
    private Date lastlogintime;//上次登录时间
    private Long logintimes;//登录次数
    private String lastloginip;//上次登录IP

    /****** T_SYS_USER_EXT 表 扩展字段  **/
	private String zsxm;  //真名
	private String xb;    //性别
	private String tx;
	private Date zcsj;    //注册时间
	private String activatecode;  //激活码
	private String grsm;    //个人说明
	private Short nl;       //年龄
	private String yx;//邮箱
	private String sjhm;//手机号码
	private String xh;//学号
	private String sfzhm;//身份证号码
    
	private String gddh;//非持久化   固定电话
	private String mobilephone;//非持久化 手机号
	private String province;//非持久化 省
	private String city;//非持久化 市
    private String qys;     //非持久化变量,企业数
    private String yhk;//非持久化对象,银行卡

	// Constructors
	/** default constructor */
	public TSysUserExt() {
	}

	/** minimal constructor */
	public TSysUserExt(String userid) {
		this.userid = userid;
	}

	/** full constructor */
	public TSysUserExt(String userid, String zsxm, String xb, String tx, Date zcsj, String activatecode, String grsm,
                       Short nl) {
		this.userid = userid;
		this.zsxm = zsxm;
		this.xb = xb;
		this.tx = tx;
		this.zcsj = (Date)new Date(zcsj.getTime()).clone();
		this.activatecode = activatecode;
		this.grsm = grsm;
		this.nl = nl;
	}

	// Property accessors
	@Id
	@Column(name = "USERID", unique = true, nullable = false, length = 50)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "ZSXM", length = 50)
	public String getZsxm() {
		return this.zsxm;
	}

	public void setZsxm(String zsxm) {
		this.zsxm = zsxm;
	}

	@Column(name = "XB", length = 3)
	public String getXb() {
		return this.xb;
	}

	public void setXb(String xb) {
		this.xb = xb;
	}

	@Column(name = "TX", length = 50)
	public String getTx() {
		return this.tx;
	}

	public void setTx(String tx) {
		this.tx = tx;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ZCSJ", length = 19)
	public Date getZcsj() {
		return (Date) new Date(zcsj.getTime()).clone();
	}

	public void setZcsj(Date zcsj) {
        Date sj=(Date)new Date(zcsj.getTime()).clone();
		this.zcsj = sj;
	}

	@Column(name = "ACTIVATECODE", length = 50)
	public String getActivatecode() {
		return this.activatecode;
	}

	public void setActivatecode(String activatecode) {
		this.activatecode = activatecode;
	}

	@Column(name = "GRSM", length = 600)
	public String getGrsm() {
		return this.grsm;
	}

	public void setGrsm(String grsm) {
		this.grsm = grsm;
	}

	@Column(name = "NL", precision = 3, scale = 0)
	public Short getNl() {
		return this.nl;
	}

	public void setNl(Short nl) {
		this.nl = nl;
	}

	@Column(name="XH" ,length = 50)
	public String getXh() {
		return xh;
	}

	public void setXh(String xh) {
		this.xh = xh;
	}
	@Column(name="SFZHM" ,length = 50)
	public String getSfzhm() {
		return sfzhm;
	}

	public void setSfzhm(String sfzhm) {
		this.sfzhm = sfzhm;
	}

	@Transient
	public String getUserloginid() {
		return userloginid;
	}

	public void setUserloginid(String userloginid) {
		this.userloginid = userloginid;
	}
    @Transient
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	@Transient
	public String getGddh() {
		return gddh;
	}

	public void setGddh(String gddh) {
		this.gddh = gddh;
	}
	@Transient
	public String getMobilephone() {
		return mobilephone;
	}

	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}
	@Transient
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	@Transient
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
    @Transient
    public String getQys() {
        return qys;
    }

    public void setQys(String qys) {
        this.qys = qys;
    }

    @Transient
    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    @Transient
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Transient
    public Date getLastlogintime() {
        return (Date) new Date(lastlogintime.getTime()).clone();
    }

    public void setLastlogintime(Date lastlogintime) {
        Date date=(Date) new Date(lastlogintime.getTime()).clone();
        this.lastlogintime = date;
    }

    @Transient
    public Long getLogintimes() {
        return logintimes;
    }

    public void setLogintimes(Long logintimes) {
        this.logintimes = logintimes;
    }

    @Transient
    public String getLastloginip() {
        return lastloginip;
    }

    public void setLastloginip(String lastloginip) {
        this.lastloginip = lastloginip;
    }
@Column(name="YX")
	public String getYx() {
		return yx;
	}

	public void setYx(String yx) {
		this.yx = yx;
	}
	@Column(name="SJHM")
	public String getSjhm() {
		return sjhm;
	}

	public void setSjhm(String sjhm) {
		this.sjhm = sjhm;
	}
    @Transient
	public String getYhk() {
		return yhk;
	}

	public void setYhk(String yhk) {
		this.yhk = yhk;
	}
    
}